Fix exception handling in xend start-of-day.
authorSteven Hand <steven@xensource.com>
Thu, 14 Dec 2006 20:58:27 +0000 (20:58 +0000)
committerSteven Hand <steven@xensource.com>
Thu, 14 Dec 2006 20:58:27 +0000 (20:58 +0000)
Signed-off-by: Steven Hand <steven@xensource.com>
tools/python/xen/xend/XendStorageRepository.py

index 0aaa4c67251fdd19ce67217f683cf2a6b82fba2f..9a3663a9a579fc477c3f08070ace6ff71f6d6256 100644 (file)
@@ -93,7 +93,7 @@ class XendStorageRepository:
                 open(uuid_file, 'w').write(new_uuid + '\n')
                 return new_uuid
         except IOError:
-            log.exception()
+            log.exception("Failed to determine SR UUID")
 
         return uuid.createString()
 
@@ -232,7 +232,7 @@ class XendStorageRepository:
                     if cfg_path and os.path.exists(cfg_path):
                         os.unlink(cfg_path)
                 except OSError:
-                    log.exception()
+                    log.exception("Failed to destroy image")
                 del self.images[image_uuid]
                 return True
         finally: